package wn.lizzy.multi.concurrent.t6;

public class MyThread1 extends Thread {
	private Task task;

	public MyThread1(Task task) {
		super();
		this.task = task;
	}

	@Override
	public void run() {
		CommonUtil.beginTime1 = System.currentTimeMillis();
		task.doLongTimeTask();
		CommonUtil.endTime1 = System.currentTimeMillis();
	}

}
